//package com.quartz.samplejob;
//
//import org.quartz.*;
//import org.springframework.scheduling.quartz.QuartzJobBean;
//
///**
// * @author lzn
// * @date 2/23/21 11:04 AM
// * 首先定义一个Job，定时任务所执行的逻辑
// */
//public class SampleJob extends QuartzJobBean {
//
//    private String name;
//
//    public void setName(String name) {
//        this.name = name;
//    }
//
//    @Override
//    protected void executeInternal(JobExecutionContext jobExecutionContext) throws JobExecutionException {
//        JobDetail jobDetail = jobExecutionContext.getJobDetail();
//
//        JobKey jobKey = jobDetail.getKey();
//        String jobName = jobKey.getName();
//        String jobGroup = jobKey.getGroup();
//
//        Trigger trigger = jobExecutionContext.getTrigger();
//
//        System.out.println("Quartz ---->  Hello, " + this.name+jobName+jobGroup);
//    }
//}
